#!/usr/bin/env python
#ecoding = utf-8
__author__ = 'lihao'
import pandas as pd
from pandas import DataFrame
import matplotlib.pyplot as plot
target_url = ("https://archive.ics.uci.edu/ml/machine-learning-databases/undocumented/connectionist-bench/sonar/sonar.all-data")
rocksVMines = pd.read_csv(target_url,header=None,prefix="V")

dataRow2 = rocksVMines.ix[1, 0:60]
dataRow3 = rocksVMines.ix[2, 0:60]

fig = plot.figure()
ax1 = fig.add_subplot(111)
ax1.set_title('Scatter Plot123456')
plot.scatter(dataRow2, dataRow3)

plot.xlabel("2nd Attribute")
plot.ylabel("3rd Attribute")

plot.show()

dataRow21 = rocksVMines.iloc[20, 0:60]
fig = plot.figure()
ax1 = fig.add_subplot(111)
ax1.set_title('Scatter Plot')
plot.scatter(dataRow2, dataRow21)

plot.xlabel("2nd Attribute")
plot.ylabel("21st0 Attribute")
plot.show()